<!--
  Generated template for the ModalcompanyselectPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
  <ion-toolbar>
    <ion-buttons start>
      <button ion-button (click)="doclose()">
        返回
      </button>
    </ion-buttons>
    <ion-title>选择办公用品</ion-title>
    <ion-buttons end>
      <button ion-button (click)="doneselect()">
        确定
      </button>
    </ion-buttons>
  </ion-toolbar>
</ion-header>
<ion-content>
  <ion-searchbar (ionInput)="getItems($event)" placeholder="输入名称查询..."></ion-searchbar>
  <ion-item *ngFor="let item of searchQuery">
    <ion-label>
      <div>编号：{{item.code}} 名称：{{item.name}} </div>
      <div>单价：{{item.price}} 数量：{{item.num}}</div>
      <div>单位：{{item.unit}} 类型：{{item.type}} </div>
      <div>管理部门：{{item.departname}} 归属：{{item.assetBelong}} </div>
      <div>购买时间：{{item.buyDate}} </div>
    </ion-label>
    <ion-checkbox color="dark" [(ngModel)]="item.searched"></ion-checkbox>
  </ion-item>
</ion-content>